#include <cstdio>
#include <algorithm>
int a[200000] = {0};

/* 
int comp(int a, int b)
{
	return a > b;
}
*/
class Comp
{
public:
	int operator ()(int a, int b)
	{
		return a > b;
	}		
};
 

int main()
{
	int n = 0;
	scanf("%d", &n);
	for ( int i = 0; i < n; i++ ) {
		scanf("%d", &a[i]);
	}
	
	Comp c;
	std::sort(a, a+n, c);
	for ( int i = 0; i < n; i++ ) {
		printf("%d\n", a[i]);
	}
    return 0;
}
